﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.ExtentionMethods;
using Happy.Domain;

namespace Happy.Examples.OrderManagement.Domain.Orders
{
    public sealed class CustomerInfo : ValueObject<CustomerInfo>
    {
        public CustomerInfo(string name, string address, string tel)
        {
            name.MustNotNullAndNotWhiteSpace("name");
            address.MustNotNullAndNotWhiteSpace("address");
            tel.MustNotNullAndNotWhiteSpace("tel");

            this.Name = name;
            this.Address = address;
            this.Tel = tel;
        }

        public string Name { get; private set; }

        public string Address { get; private set; }

        public string Tel { get; private set; }
    }
}
